﻿<!--
Majesty of Omega - The next evolution of macro management space strategy

Copyright 2007 André Claaßen

This file is protected by the terms and conditions of the
Microsoft Community License (Ms-CL 1.1), a copy of which should
have been distributed along with this software. If not,
you may find the license information at the following URL:

http://www.microsoft.com/resources/sharedsource/licensingbasics/communitylicense.mspx
-->
    
<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Majesty_of_Omega.GUI.Pages.Parts.MenuButtonPanelControl"
	x:Name="UserControl"
	xmlns:Majesty_of_Omega_GUI_Commands="clr-namespace:Majesty_of_Omega.GUI.Commands">

	<UserControl.Resources>
		<SkewTransform x:Key="StandardSkewTransform" AngleX="-10" AngleY="0"/>
		<Storyboard x:Key="OnClickLoad">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:1" Storyboard.TargetName="MenuButtonPanel" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="100%" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<StackPanel Height="Auto" x:Name="MenuButtonPanel" RenderTransform="{StaticResource StandardSkewTransform}" d:LayoutOverrides="Height">
			<Button  Style="{DynamicResource buttonMenuTemplate}" Command="Majesty_of_Omega_GUI_Commands:MainCommands.NewGameCommand" Content="New Game"/>
			<Button  Style="{DynamicResource buttonMenuTemplate}" Command="Majesty_of_Omega_GUI_Commands:MainCommands.LoadGameCommand" Content="Load Game" />
			<Button  Style="{DynamicResource buttonMenuTemplate}" Content="Multiplayer"/>
			<Button  Style="{DynamicResource buttonMenuTemplate}" Content="Options"/>
			<Button  Style="{DynamicResource buttonMenuTemplate}" Content="High-Scores"/>
			<Button  Style="{DynamicResource buttonMenuTemplate}" Content="Credits"/>
			<Button  Style="{DynamicResource buttonMenuTemplate}" Command="ApplicationCommands.Close" Content="Quit"/>
		</StackPanel>
	</Grid>
</UserControl>